module.exports = {
  publicPath: "/",
  productionSourceMap: false,
  devServer: {
    port: 3333,
    open: true,
    proxy: {
      "/index.php": {
        target: "https://service.nzfco.com",
        ws: true, //代理websockets
        changeOrigin: true,
        pathRewrite: {
          "^/index.php": "/index.php"
        }
      },
      "/storage": {
        target: "https://service.nzfco.com",
        ws: true, //代理websockets
        changeOrigin: true,
        pathRewrite: {
          "^/storage": "/storage"
        }
      }
    }
  },
  css: {
    loaderOptions: {
      scss: {
        prependData: `@import "@/assets/scss/_variable.scss";`
      }
    }
  }
};
